package com.qijian.production.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 非标准定额申请单-任务清单明细对象 main_point_order_item_detail
 *
 * @author qijian
 * @date 2023-12-06
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_point_order_item_detail")
public class PointOrderItemDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "申请单id")
    private Long mainId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "申请单明细id")
    private Long mainItemId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "人员id")
    private Long userId;

    @Excel(name = "生产人员")
    @ApiModelProperty(value = "生产人员")
    private String nickName;

    @Excel(name = "派工金额")
    @ApiModelProperty(value = "派工金额")
    private BigDecimal amount;

    @Excel(name = "实时工时")
    @ApiModelProperty(value = "实时工时")
    private BigDecimal workTime;

    @ApiModelProperty(value = "员工部门")
    @TableField(exist = false)
    private Long deptId;

    @ApiModelProperty(value = "员工部门id")
    @TableField(exist = false)
    private String deptName;

}
